package com.shsh.safemanage.model;

public class WeakProblem extends Problem {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2253536240849531737L;

	/**
	 * 0=A,1=B,2=C
	 */
	private Integer weakType;

	private int point;

	private String noneWorkTime;

	private boolean hasNoneWorkTime;

	private boolean needDelete;

	public WeakProblem() {

	}

	public WeakProblem(Problem problem) {
		super(problem);
	}

	public boolean hasNoneWorkTime() {
		return hasNoneWorkTime;
	}

	public void setHasNoneWorkTime(boolean hasNoneWorkTime) {
		this.hasNoneWorkTime = hasNoneWorkTime;
	}

	public Integer getWeakType() {
		return weakType;
	}

	public void setWeakType(Integer weakType) {
		this.weakType = weakType;
	}

	public int getPoint() {
		return point;
	}

	public void setPoint(int point) {
		this.point = point;
	}

	public String getNoneWorkTime() {
		if (noneWorkTime != null && noneWorkTime.length() > 10) {
			return noneWorkTime.substring(0, 10);
		}
		return noneWorkTime;
	}

	public void setNoneWorkTime(String noneWorkTime) {
		this.noneWorkTime = noneWorkTime;
	}

	public boolean isNeedDelete() {
		return needDelete;
	}

	public void setNeedDelete(boolean needDelete) {
		this.needDelete = needDelete;
	}

}
